import { get, post } from "./index";

export const fetchStatusData = () => post(`/biz/mesEquipment/countStatusTime`);
export const countExceptToday = () => get(`/biz/mesRecordExcept/countRecords`);
export const listAssembly = (equipmentId) => get(`/biz/mesAssembly/fetchByEquipmentId/${equipmentId}`);
export const fetchUtilization = ( ) => get(`/biz/mesRecordCapacity/getNightRecordBeatChart`);

export const fetchMaintenanceCountdown = ( ) => get(`/biz/mesWorkpiece/maintenanceCountdown`);

export const listRecordExcept= ()=>post(`/biz/mesRecordExcept/getRecordExceptList`)
export default {
  countExceptToday,
  fetchStatusData,
  listAssembly,
  fetchMaintenanceCountdown, 
  fetchUtilization,
  listRecordExcept,
};
